﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TagCore;

namespace TagManager
{
	public class ResultsEventArgs : EventArgs
	{
		private IMusicData[] results;

		public ResultsEventArgs(IMusicData[] results)
		{
			this.results = results;
		}

		public IMusicData[] Results
		{
			get { return results; }
		}
	}

    public class ResultDataEventArgs : EventArgs
    {
        private IMusicData md;
        private QueryFields type;

        public ResultDataEventArgs(IMusicData md, QueryFields type)
        {
            this.md = md;
            this.type = type; 
        }

        public IMusicData Data
        {
            get { return md; }
        }

        public QueryFields Type
        {
            get
            {
                return type;
            }
        }
    }

    public delegate void ViewResultsHandler(object sender, ResultsEventArgs e);   
    public delegate void ResultDataHandler(object sender, ResultDataEventArgs e);
}
